/*
 *
 * Entidad.java
 * Copyright(c) 2013 UcentralSoft, Todos los derechos reservados 
 */
package modelo;

/**
 * Permite manejar los datos de la entidad
 *
 * @version 1.0 [2013/10/13]
 * @author Jorge Barrera
 */
public class Autorizacion {

    private Integer id;
    private Menu idMenu;
    private Rol idRol;

    public Autorizacion() {
    }

    public Autorizacion(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Menu getIdMenu() {
        return idMenu;
    }

    public void setIdMenu(Menu idMenu) {
        this.idMenu = idMenu;
    }

    public Rol getIdRol() {
        return idRol;
    }

    public void setIdRol(Rol idRol) {
        this.idRol = idRol;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are
        // not set
        if (!(object instanceof Autorizacion)) {
            return false;
        }
        Autorizacion other = (Autorizacion) object;
        if ((this.id == null && other.id != null)
                || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "modelo.Autorizacion[ id=" + id + " ]";
    }
}
